package com.example.demo.bean;

import lombok.Data;

@Data
public class Res<T> {
    private Integer status;
    private String msg;
    private T data;

    public Res() {
    }

    public Res(Integer status, String msg, T data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public static<T>  Res<T>  success(T t){
        return new Res<>(200,"",t);
    }

    public static  Res<Object>  success(){
        return new Res<>(200,"",null);
    }
}
